#coding=utf-8
import HTMLTestRunner
import unittest

from longforunitest import login_uintest

#实例化测试套件
msuit = unittest.TestSuite()
#把case添加到测试套件里面
msuit.addTest(unittest.makeSuite(login_uintest.LF_login))
# msuit.addTest(unittest.makeSuite(overview_unitest.LF_Overview))

#制定自动化测试报告生成路径
finlename = "D:\HTMLtestrunner\jdtwo.html"

#获取当前时间
# now = time.strftime("%Y-%m-%M-%H_%M_%S",time.localtime(time.time()))

#以IO刘的形式写入
path = file(finlename,'wb')

#运行自动化测试报告   stream表示写入方式 title测试用例标题   description 模块描述
runner = HTMLTestRunner.HTMLTestRunner(stream=path,title="LongFor",description="LongForMain")

runner.run(msuit)

#增加